package com.ssy.lingxi.logistics.api.fallback;

import com.ssy.lingxi.common.response.ResponseCode;
import com.ssy.lingxi.common.response.Wrapper;
import com.ssy.lingxi.logistics.api.dto.request.LogisticsCompanyAddRequest;
import com.ssy.lingxi.logistics.api.feign.LogisticsCompanyFeign;
import org.springframework.stereotype.Component;


@Component
public class LogisticsCompanyFeignFallback implements LogisticsCompanyFeign {

    @Override
    public Wrapper<Void> addLogisticsCompany(LogisticsCompanyAddRequest request) {
        return Wrapper.fail(ResponseCode.SERVICE_LOGISTICS_ERROR);
    }
}
